package com.itHsuSE.demo8;

import javax.swing.*;
import java.awt.*;

/**
 * @author Hsu琛君珩
 * @ClassName:Test4
 * @date 2023-12-19
 * @apiNote
 * @Version: v1.0
 */

public class Test4 {
    public static void main(String[] args) {
        JFrame jf = new JFrame("Frame");
        jf.setLayout(new FlowLayout());
        jf.setBounds(400, 300, 300, 400);

        JButton jb=new JButton("按钮1");
        jb.setEnabled(true);
        jb.setBorderPainted(true);
        jf.add(jb);

        jf.setVisible(true);
        jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}
